//part1:C03:ex3.4.2.cpp -- read two strings, compare them according to length.
#include <iostream>
#include <string>

int main(void)
{
    using namespace std;
    string s1, s2;
    cout << "Enter two strings :\n";
    cin >> s1 >> s2;
    auto len1 = s1.size();
    auto len2 = s2.size();
    if (len1 == len2)
    {
        cout << s1 << " and " << s2 << " length are " << len1 << endl;
    }
    else if (len1 > len2)
    {
        cout << s1 << " larger than " << s2 << len1 - len2 << endl;
    }
    else
    {
        cout << s1 << " smaller than " << s2 << len2 - len1 << endl;
    }

    return 0;
}